package com.smiier.skin.net;

import java.util.ArrayList;

import android.content.Context;
import cn.o.app.io.INoProguard;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.FollowGetFollowersListTask.FollowGetFollowersListRequest;
import com.smiier.skin.net.FollowGetFollowersListTask.FollowGetFollowersListResponse;
import com.smiier.skin.net.entity.Follow;
import com.smiier.skin.util.GlobalSettings;

/**
 * 获取目标被关注的用户列表
 * 
 * @author 杨文华
 * 
 */
public class FollowGetFollowersListTask extends
		NetTask<FollowGetFollowersListRequest, FollowGetFollowersListResponse> {

	public static class FollowGetFollowersListRequest extends ORequest {
		public long following_id;
		public int type;
		public int pagesize;
		public Long startuid;
		public String appname = Constant.APP_NAME;
	}

	public static class FollowGetFollowersListResponse extends OResponse {
		public FollowList Res;
	}

	public static class FollowList implements INoProguard {
		public int Count;
		public ArrayList<Follow> Follows;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_URL_JOIN
				+ "?api=Follow.GetFollowersList";
		mRequestMethod = METHOD_GET;
	}
}
